import request from '@/utils/request'

export function getCusList(data) {
  return request({
    url: 'open/check',
    method: 'get',
    params: data
  })
}

// 详情
export function CusInfo(id) {
  return request({
    url: 'open/check/' + id,
    method: 'get',
  })
}

// 提交
export function updateItem(id, data) {
  return request({
    url: 'open/check/' + id,
    method: 'put',
    data,
    msg: true
  })
}

// 导出字段 (显示)
export function outList(data) {
  return request({
    url: 'open/select',
    method: 'get',
    params: data
  })
}

// 导出字段 (提交)
export function outExplode(data) {
  return request({
    url: 'open/explode',
    method: 'get',
    params: data
  })
}

// 驳回原因 (显示)
export function reasonList() {
  return request({
    url: 'open/reason',
    method: 'get',
  })
}

// 驳回原因 (新增)
export function reasonSub(data) {
  return request({
    url: 'open/reason',
    method: 'post',
    data
  })
}

//驳回原因 删除
export function deleteItem(id) {
  return request({
    url: 'open/reason/' + id,
    method: 'delete',
    msg: true
  })
}

// 账户升级
export function accountUp(id,data){
  return request({
    url: 'open/upgrade/' + id,
    method: 'put',
    data,
    msg: true
  })
}
